package com.runa.monitor.platinterface.extend.hmy;

import com.runa.persistence.DateUtil;
import com.runa.persistence.StringUtil;
import lombok.Data;
import org.springframework.http.HttpMethod;

import java.util.Date;

/**
 * 2024/10/18 10:24
 * zhangYB
 */
@Data
public class HmyRequest {

    private Long msgId;

    private String nodeId;

    private String expiredDate;

    public HmyRequest() {
    }

    public HmyRequest(Long msgId, String nodeId, String expiredDate) {
        this.msgId = msgId == null ? 1 : msgId;
        this.nodeId = nodeId;
        this.expiredDate = StringUtil.isBlank(expiredDate) ? DateUtil.toStringGeneric(DateUtil.dateAddMinutes(new Date(), 3L)) : expiredDate;
    }
}
